package com.alipay.sofa.award.common.dal.dao;

import com.alipay.sofa.award.common.dal.dataobject.ActivityTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityTimeMapper {

    int deleteByPrimaryKey(Integer id);

    int deleteByUniqueKeyActivityTime(String activityTime);

    int insert(ActivityTime record);

    int insertSelective(ActivityTime record);

    ActivityTime selectByPrimaryKey(Integer id);

    ActivityTime selectByUniqueKeyActivityTime(String activityTime);

    List<ActivityTime> selectAllActivityTime();

    int updateByPrimaryKey(ActivityTime record);

    int updateActivityTime(@Param("oldActivityTime") String oldActivityTime,
                           @Param("updatedActivityTime") String updatedActivityTime);

}